import Vue from 'vue'
import VueRouter from "vue-router";

//导入自定义组件
import Content from "../components/Content";
import Main from "../components/Main";
import Login from "../components/Login";

// //安装路由
Vue.use(VueRouter);

//配置导出路由
export default new VueRouter({
  routes: [
    //路由对象
    {
      //路由路径
      path: '/content',
      name: 'content',
      //跳转相应的组件
      component: Content
    },
    {
      //路由路径
      path: '/main',
      name: 'main',
      //跳转相应的组件
      component: Main
    },
    {
      //路由路径
      path: '/login',
      name: 'login',
      //跳转相应的组件
      comment: Login
    }
  ]
});
